﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StandardsEdit.aspx.cs"
    Inherits="CJJCH.Web.Manage.StandardsEdit" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../DemoSwfUpload/css.css" rel="stylesheet" type="text/css" />
    <link href="../Style/SystemCss.css" rel="stylesheet" type="text/css" />
    <script src="../JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../Script/JQcheck.js" type="text/javascript"></script>
    <script src="../Calendar/WdatePicker.js" type="text/javascript"></script>
    <script src="../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="../JScript/Calendar/WdatePicker.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function checkform() {
            if (IsNothing($("#txtDataTitle"), "请输入标准规范编号！")) {
                return false;
            }
            if (IsNothing($("#txtDataServiceID"), "请输入备案号！")) {
                return false;
            }
            if (document.getElementById('type').style.display != "none") {
                if (IsNothing($("#dropStandardsType"), "请选择所属类型！")) {
                    return false;
                }
                if (checkdigit(($("#dropStandardsType")), "所属类型选择有误！")) {
                    return false;
                }
            }
            if (IsNothing($("#txtDataName"), "请输入标准规范名称！")) {
                return false;
            }
            if (IsNothing($("#txtDataAuthor"), "请输入主编部门！")) {
                return false;
            }
            if (IsNothing($("#txtPlusDate"), "请选择实行日期！")) {
                return false;
            }
            else if (checkdate($("#txtPlusDate"), "请选择正确的实行日期！")) {
                return false;
            }
            if (IsNothing($("#txtDataSource"), "请输入被代替编号！")) {
                return false;
            }
            if (CKEDITOR.instances.txtContent.getData() == "") {
                alert("请输入资讯内容！");
                return false;
            }
            if (IsNothing($("#txtTrans"), "请输入显示排序号！")) {
                return false;
            }
            else if (checkdigit($("#txtTrans"), "显示排序请输入数字！")) {
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="BodyRight" style="width: 100%;">
        <div class="BoxHeader_Test" id="div1" runat="server">
            <div class="Left_Test">
            </div>
            <div class="BoxHeader_Test" id="divhidtop" runat="server">
                <div class="Left_Test">
                </div>
                <div class="Linkbf12" style="padding: 8px 0px 0px 10px; color: #000000; font-size: 12px;
                    font-weight: bold;">
                    <asp:HyperLink ID="lnkStandards" runat="server"></asp:HyperLink>
                    >>
                    <asp:Label ID="lblBook" runat="server">修改</asp:Label>
                </div>
            </div>
            <div runat="server" id="divHidden" visible="false">
                <asp:Label ID="lblSecondId" runat="server"></asp:Label>
                <asp:Label ID="lblFirstID" runat="server"></asp:Label>
                <asp:Label ID="lblSecondName" runat="server"></asp:Label>
                <asp:Label ID="lblnoteID" runat="server"></asp:Label>
                <asp:Label ID="lblKeyword" runat="server"></asp:Label>
                <asp:Label ID="lblKeytype" runat="server"></asp:Label>
                <asp:Label ID="lblTimeBegin" runat="server"></asp:Label>
                <asp:Label ID="lblTimeOver" runat="server"></asp:Label>
                <asp:Label ID="lblOrderKey" runat="server"></asp:Label>
                <asp:Label ID="lblOrderType" runat="server"></asp:Label>
                <asp:Label ID="lblcurpage" runat="server"></asp:Label>
                <asp:Label ID="lblID" runat="server"></asp:Label>
            </div>
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
                <tr>
                    <td width="1" height="100%" class="Left">
                    </td>
                    <td height="100%" valign="top">
                        <%-- <div class="RBodyTable_x3 Link_font" style="width: 98%; margin: 10px auto;">--%>
                        <table cellpadding="0" cellspacing="0" class="add_table" style="width: 98%; margin: 10px auto;"
                            bgcolor="#FFFFFF">
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    标准规范编号
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtDataTitle" runat="server" class="InputSearch_x1" Height="16px"
                                         Width="296px"></asp:TextBox>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    备案号
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtDataServiceID" runat="server" class="InputSearch_x1" Width="296px"
                                        Height="16px"></asp:TextBox>*
                                </td>
                            </tr>
                            <tr id="type"  runat="server">
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px; " valign="middle" 
                                    class="tdBg1" >
                                    所属类别
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:DropDownList ID="dropStandardsType" runat="server">
                                        <asp:ListItem Text="请选择" Value=""></asp:ListItem>
                                    </asp:DropDownList>
                                    *
                                </td>
                            </tr>
                            <tr id="trState" runat="server">
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    标准规范名称
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtDataName" runat="server" class="InputSearch_x1" Height="16px"
                                        Width="296px"></asp:TextBox>*
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    主编部门
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtDataAuthor" runat="server" class="InputSearch_x1" Width="296px"
                                        Height="16px"></asp:TextBox>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    实行日期
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox runat="server" ID="txtPlusDate" class="InputSearch_x1" onkeydown="return false;"
                                        onkeypress="return false;" onpaste="return false;" oncut="return false;" onfocus="new WdatePicker({dateFmt:'yyyy-MM-dd',skin:'blue',isShowClear:true,maxDate:'2050-12-31'});"
                                        Width="70px"></asp:TextBox>*
                                    
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    被代替编号
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtDataSource" runat="server" Width="296px" class="InputSearch_x1"></asp:TextBox>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    备注
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtDataAbout" runat="server" Width="700px" class="InputSearch_x1"
                                        Height="41px" TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    详情
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <textarea id="txtContent" runat="server" cols="80" rows="10"></textarea>
                                    <script type="text/javascript" language="javascript">                                        CKEDITOR.replace('txtContent', { width: '700', height: '400' });</script>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                    class="tdBg1">
                                    显示排序
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:TextBox ID="txtTrans" runat="server" class="InputSearch_x1" Width="37px"></asp:TextBox>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    操作：
                                </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                    <asp:Button ID="btnSave" runat="server" Text="提 交" Style="padding: 2px 10px 3px 10px"
                                        Width="62px" CssClass="BtnSearch_x1" OnClick="btnSave_Click" />
                                    &nbsp;
                                    <asp:Button ID="btnBack" runat="server" Text="返 回" Style="padding: 2px 10px 2px 10px"
                                        Width="62px" CssClass="BtnSearch_x1" OnClick="btnBack_Click" />
                                </td>
                            </tr>
                        </table>
                        <%--</div>--%>
                    </td>
                    <td width="0" height="100%" class="Right">
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
